<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 外部引用 -->
    <!-- <script src=".js" -->
</head>
<body>
    <script>

        // 标签内alert
        alert('弹窗');

    </script>
    <!-- 2.行内书写js -->
    <input type=" button" value="你好" onclick="alert('清理')">
</body>
</html>